package com.olympus.hermes.auth.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Mickey
 * @since 2020.08.27
 */
@RestController
@RequestMapping("/auth")
public class AuthController {

    @GetMapping("/currentUser")
    public Object currentUser(Authentication authentication) {
        return authentication;
    }
}
